package com.example.demo.test123;


import com.example.demo.mapper.SubjectZMapper;
import com.example.demo.mode1.Subject;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;

@Controller
public class testmeat {
    @Resource
    private SubjectZMapper subjectZMapper;

    @ResponseBody
    @RequestMapping("/meat")
    public HashMap echers() {
        HashMap map = new HashMap();
        ArrayList<Subject> selectall = subjectZMapper.selectall();
        map.put("datas",selectall);
        return map;
        }


    }
